import { defHttp } from "@/utils/http";

// ERP 入库跟踪API
export const invtInTrackApi = {
	// 获得入库跟踪分页
	invtInTrackList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-in-track/page`, params });
	},
	// 新增入库跟踪
	invtInTrackCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-in-track/create`, data });
	},

	// 修改入库跟踪
	invtInTrackUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-in-track/update`, data });
	},

	// 删除入库跟踪
	invtInTrackDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-in-track/delete?id=` + id });
	}
};
